home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_776 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  583b  |  27 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(_root.chr._currentframe == 1)
  5.    {
  6.       _root.txtX._visible = true;
  7.       _root.txtX.play();
  8.       _root.chr.gotoAndPlay(11);
  9.       this._x = targetX;
  10.       this._y = targetY;
  11.    }
  12.    else if(this.hitTest(_root.chr.idrop))
  13.    {
  14.       _root.chr.fegg._visible = true;
  15.       this._x = targetX;
  16.       this._y = targetY;
  17.       this._visible = false;
  18.       _root.fry.eggx.gotoAndPlay(81);
  19.       _root.eggx._visible = false;
  20.    }
  21.    else
  22.    {
  23.       this._x = targetX;
  24.       this._y = targetY;
  25.    }
  26. }
  27.